import { createPinia } from 'pinia'
import persist from 'pinia-plugin-persistedstate'

const pinia = createPinia()
pinia.use(persist)

export default pinia

export * from './modules/user' // 等价于下面两句 (将所有模块的内容全部从index暴露出去 可以降低代码复杂度)
// import useUserStore from './modules/user'
// export default useUserStore
